						<div id="slider-wrap">
                        		<div class="flexslider">
		                        		<ul class="slides">
                                        		<?php       
												$slides_arguments = array(
																		'post_type' => 'slide',
																		'posts_per_page' => 5
																	);
												
												$slides_query = new WP_Query( $slides_arguments );
												
												if ( $slides_query->have_posts() ) 
												{																								
													while ( $slides_query->have_posts() ) : 												
													$slides_query->the_post();																																																		
														?>	
														<li>
																<?php
																if ( has_post_thumbnail() )
																{																																														
																	$image_id = get_post_thumbnail_id();
																	$featured_image = wp_get_attachment_image_src( $image_id,'slider-img' );
																	echo '<a href="'.get_post_meta($post->ID,'slide_url',true).'" title="'.get_the_title().'"  class="img-hover" >';	
																	echo '<img src="'.$featured_image[0].'" alt="'.get_the_title().'">';																																					
																	echo '</a>';																																						
																}
																?>                                                                                                               
														</li>                                               
														<?php																																																											 
													endwhile;															
												}																																						
												?>
		                        		</ul>
                                        <ul class="slide-nav">
                                        		<?php
												$slides_query->rewind_posts();
												
												if ( $slides_query->have_posts() ) 
												{																								
													while ( $slides_query->have_posts() ) : 												
													$slides_query->the_post();																																																		
														?>	
														<li>
																<h4><?php the_title(); ?></h4>
                                                                <p><?php echo get_post_meta($post->ID,'slide_sub_title',true); ?></p>                                                                                                                                                                               
														</li>                                                                                                       
														<?php																																																											 
													endwhile;															
												}																																						
												?>                                                
                                        </ul><!-- end of slider nav -->
                        		</div>
                        </div><!-- end of slider-wrap -->